/*
 * @Author: Zeratul
 * @Date: 2020-08-28 02:36:53
 * @LastEditTime: 2020-08-28 09:53:03
 * @FilePath: \sz-h5-2003-react-mobile\zhangminhui\eleme-react\eleme-user\src\store\actionCreator\chatAction\index.js
 */
import {GETMESSAGE,CHANGEINPUTVAL, SENDMESSAGE} from '../../actionType'
const getSocketMessageAction=(params) => {
    return function(dispatch){
        dispatch({
            type:GETMESSAGE,
            message:params
        })
    }
}
const changeInputValueAction=(text)=>{
    return function(dispatch){
        dispatch({
            type:CHANGEINPUTVAL,
            message:text
        })
    }
}
const sendMessageAction = ()=>{
    return function(dispatch){
        dispatch({
            type:SENDMESSAGE
        })
    }
}
export{
    getSocketMessageAction, changeInputValueAction,sendMessageAction
}